#!/user/bin/env node

const log = console.log,
      fs = require('fs'),
      lnk = process.argv[2];


if(typeof(lnk) === 'undefined' || process.argv.length != 3){
    console.error('请输入正确的链接文件名！');
    process.exit(3);
}
try{
    let  link = fs.readlinkSync(lnk);
    log('打印成功！');
    log(`${lnk}->${link}`);
    process.exit(1);
}catch(e){
  console.error(e.message);
  process.exit(2);
}



      

